package so.shanku.essential.activity;

import net.tsz.afinal.annotation.view.ViewInject;
import so.shanku.essential.R;
import so.shanku.essential.activity.base.BaseUIActivity;
import so.shanku.essential.adapter.RelationPersonAdapter;
import so.shanku.essential.view.ListViewNoScroll;
import android.content.Context;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.widget.LinearLayout;

public class MyMsgActivity extends BaseUIActivity {
	
	@ViewInject (id=R.id.my,click="my")LinearLayout my;
	@ViewInject (id=R.id.comment,click="comment")LinearLayout comment;
	@ViewInject (id=R.id.system_msg,click="system_msg")LinearLayout system_msg;
	@ViewInject (id=R.id.my_msg_lv,click="my_msg_lv")ListViewNoScroll my_msg_lv;
	private Context context;
	
	private RelationPersonAdapter relationPersonAdapter;
	/**
	 * @author FangDongzhang
	 * 2016/3/25
	 * 我的消息
	 */
	@Override
	public void onCreate(Bundle savedInstanceState) {
		// TODO Auto-generated method stub
		super.onCreate(savedInstanceState);
		setContentView(R.layout.activity_my_msg);
		context = this.myApplication;
		setCenter_title(R.string.my_msg);
		setBtn_menu(R.drawable.more_white, null);
		
		relationPersonAdapter = new RelationPersonAdapter(context, null);
		my_msg_lv.setAdapter(relationPersonAdapter);
	}
	/**
	 * @我的
	 * @param v
	 */
	public void my(View v){
		Intent  intent = new Intent(context,MyActivity.class);
		startActivity(intent);
	}
	/**
	 * @评论
	 * @param v
	 */
	public void comment(View v){
		Intent  intent = new Intent(context,ArticalCommentsActivity.class);
		startActivity(intent);
	}
	/**
	 * @系统消息
	 * @param v
	 */
	public void system_msg(View v){
		Intent  intent = new Intent(context,null);
		startActivity(intent);
	}
}
